package deyi.utils;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("appconfig")
@Data
public class AppConfig {
    @Value("${localUdpRevPort}")
    private int localUdpRevPort;
    @Value("${localUdpSendPort}")
    private int localUdpSendPort;
    @Value("${localHttpPort}")
    private int localHttpPort;
    @Value("${remotePostHttpUrl}")
    private String remoteHttpUrl;
    @Value("${communicationKey}")
    private String communicationKey;
    @Value("${remoteConfigRevUrl}")
    private String remoteConfigHttpUrl;
    @Value("${deviceDataSaveTime}")
    private int deviceDataSaveTime;
    @Value("${httpConnectTime}")
    private int httpConnectTime;
    @Value("${httpReadTime}")
    private int httpReadTime;
}
